import Vue from 'vue'
import Router from 'vue-router'
import Home from '../components/Home.vue'
import City from '../components/City.vue'
import CityCopy from '../components/CityCopy.vue'
import Login from '../components/Login.vue'
import Register from '../components/Register.vue'
import Reset from '../components/Reset.vue'
import Shopping from '../components/Shopping.vue'
import Search from '../components/Search.vue'
import ShoppingCart from '../components/ShoppingCart.vue'
import ShoppingHeader from '../components/ShoppingHeader.vue'
import My from '../components/My.vue'
import Order from '../components/Order.vue'
import Address from '../components/Address.vue'
import AddAddress from '../components/AddAddress.vue'
import SearchAddress from '../components/SearchAddress.vue'
import ShoppingCoupon from '../components/ShoppingCoupon.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/Home'
    },
    {
      path: '/Home',
      name: 'Home',
      component: Home,
      meta: {
        Home: false
      },
    },
    {
      path: '/City',
      name: 'City',
      meta: {
        City: false
      },
      component: City
    },
    {
      path: '/CityCopy',
      name: 'CityCopy',
      meta: {
        CityCopy: false
      },
      component: CityCopy
    },
    {
      path: '/Login',
      name: 'Login',
      meta: {
        Login: false
      },
      component: Login
    },
    {
      path: '/Register',
      name: 'Register',
      meta: {
        Register: false
      },
      component: Register
    },
    {
      path: '/Reset',
      name: 'Reset',
      meta: {
        Reset: false
      },
      component: Reset
    },
    {
      path: '/Shopping',
      name: 'Shopping',
      meta: {
        Shopping: true
      },
      component: Shopping
    },
    {
      path: '/Search',
      name: 'Search',
      meta: {
        Search: false
      },
      component: Search
    },
    {
      path: '/ShoppingCart',
      name: 'ShoppingCart',
      meta: {
        ShoppingCart: true
      },
      component: ShoppingCart
    },
    {
      path: '/ShoppingHeader',
      name: 'ShoppingHeader',
      meta: {
        ShoppingHeader: true
      },
      component: ShoppingHeader
    },
    {
      path: '/My',
      name: 'My',
      meta: {
        My: true
      },
      component: My
    },
    {
      path: '/Order',
      name: 'Order',
      meta: {
        Order: false
      },
      component: Order
    },
    {
      path: '/Address',
      name: 'Address',
      meta: {
        Address: true
      },
      component: Address
    },
    {
      path: '/AddAddress',
      name: 'AddAddress',
      meta: {
        AddAddress: true
      },
      component: AddAddress
    },
    {
      path: '/SearchAddress',
      name: 'SearchAddress',
      meta: {
        SearchAddress: false
      },
      component: SearchAddress
    },
    {
      path: '/ShoppingCoupon',
      name: 'ShoppingCoupon',
      meta: {
        ShoppingCoupon: false
      },
      component: ShoppingCoupon
    }
  ]
})
